<template>
  <div>
    <el-row :gutter="20">
      <el-col :span="4">
        <el-menu
          default-active="1-4-1"
          class="el-menu-vertical-demo"
          :collapse="isCollapse"
          router
        >
          <el-menu-item index="/home">
            <i class="el-icon-menu"></i>
            <span slot="title">列表</span>
          </el-menu-item>
          <el-menu-item index="/about">
            <i class="el-icon-document"></i>
            <span slot="title">博客</span>
          </el-menu-item>
        </el-menu>
      </el-col>
      <el-col :span="20">
        <i class="el-icon-s-fold" @click="isCollapse = !isCollapse"></i>
        <router-view></router-view>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isCollapse: false,
    };
  },
  methods: {},
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
